package experiment2;

/**
 * Date: 2023-04-23
 * Time: 14:55
 */
public class Athlete {
    private String name;
    private int age;
    private String country;

    public void athleteInfo(Athlete athlete){
        System.out.println(athlete.name+" "+athlete.age+" "+athlete.country);
    }

    public Athlete() {
    }

    public Athlete(String name, int age, String country) {
        this.name = name;
        this.age = age;
        this.country = country;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
}
